using System;
using Microsoft.WindowsAzure.StorageClient;

namespace Azure.Domain.Models
{
    public class SiteConfiguration : TableServiceEntity
    {
        private const string ConfigureThis = "Please Configure This";
        public const string PartitionKeyValue = "_site_";
        public const string RowKeyValue = "_configuration_";
        private string _email;
        private string _owner;
        private string _subTitle;
        private string _title;

        public override string PartitionKey
        {
            get { return PartitionKeyValue; }
            set { }
        }

        public override string RowKey
        {
            get { return RowKeyValue; }
            set { }
        }

        public string Title
        {
            get { return _title ?? ConfigureThis; }
            set { _title = value; }
        }

        public string SubTitle
        {
            get { return _subTitle ?? ConfigureThis; }
            set { _subTitle = value; }
        }

        public string Owner
        {
            get { return _owner ?? ConfigureThis; }
            set { _owner = value; }
        }

        public string Email
        {
            get { return _email ?? ConfigureThis; }
            set { _email = value; }
        }

        public string FeedUrl { get; set; }
    }
}